<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>spaceship.ProjectileEnergyWeapon</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="spaceship-module.html">Module&nbsp;spaceship</a> ::
        Class&nbsp;ProjectileEnergyWeapon
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="spaceship.ProjectileEnergyWeapon-class.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== CLASS DESCRIPTION ==================== -->
<h1 class="epydoc">Class ProjectileEnergyWeapon</h1><span class="codelink"><a href="spaceship-pysrc.html#ProjectileEnergyWeapon">source&nbsp;code</a></span><br /><br />
<pre class="base-tree">
  <a href="base.AGObject-class.html">base.AGObject</a> --+        
                  |        
             <a href="spaceship.Weapon-class.html">Weapon</a> --+    
                      |    
  <a href="base.AGObject-class.html">base.AGObject</a> --+   |    
                  |   |    
<a href="spaceship.EnergyConsumingItem-class.html">EnergyConsumingItem</a> --+    
                      |    
           <a href="spaceship.EnergyWeapon-class.html">EnergyWeapon</a> --+
                          |
                         <strong class="uidshort">ProjectileEnergyWeapon</strong>
</pre>

<dl><dt>Known Subclasses:</dt>
<dd>
    <a href="spaceship.BasicProjectileEnergyWeapon-class.html">BasicProjectileEnergyWeapon</a>,
    <a href="spaceship.TargetedProjectileEnergyWeapon-class.html">TargetedProjectileEnergyWeapon</a>,
    <a href="spaceship.Blaster-class.html">Blaster</a>,
    <a href="spaceship.DualBlaster-class.html">DualBlaster</a>,
    <a href="spaceship.MiniBlaster-class.html">MiniBlaster</a>,
    <a href="spaceship.ScatterBlaster-class.html">ScatterBlaster</a>,
    <a href="spaceship.SeekingPEW-class.html">SeekingPEW</a>
</dd></dl>

<hr />
Base class for <code><a href="spaceship.EnergyWeapon-class.html" 
  class="link">EnergyWeapon</a></code>s that shoot energy in the form of 
  projectiles moving with finite speed.<br /><br />

<!-- ==================== INSTANCE METHODS ==================== -->
<a name="section-InstanceMethods"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Instance Methods</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-InstanceMethods"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="spaceship.ProjectileEnergyWeapon-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">owner</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="spaceship-pysrc.html#ProjectileEnergyWeapon.__init__">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="spaceship.ProjectileEnergyWeapon-class.html#_shoot" class="summary-sig-name">_shoot</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">pos</span>)</span><br />
      Create and return single projectile instance.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="spaceship-pysrc.html#ProjectileEnergyWeapon._shoot">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="spaceship.ProjectileEnergyWeapon-class.html#shoot" class="summary-sig-name">shoot</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">pos</span>)</span><br />
      Perform shot if the weapon has cooled and there is ammo left.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="spaceship-pysrc.html#ProjectileEnergyWeapon.shoot">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code><a href="spaceship.EnergyWeapon-class.html">EnergyWeapon</a></code></b>:
      <code><a href="spaceship.EnergyWeapon-class.html#can_shoot">can_shoot</a></code>
      </p>
    <p class="indent-wrapped-lines"><b>Inherited from <code><a href="spaceship.Weapon-class.html">Weapon</a></code></b>:
      <code><a href="spaceship.Weapon-class.html#update">update</a></code>
      </p>
    <div class="private">    <p class="indent-wrapped-lines"><b>Inherited from <code><a href="base.AGObject-class.html">base.AGObject</a></code></b> (private):
      <code><a href="base.AGObject-class.html#_setattrs">_setattrs</a></code>
      </p></div>
    <p class="indent-wrapped-lines"><b>Inherited from <code><a href="spaceship.EnergyConsumingItem-class.html">EnergyConsumingItem</a></code></b>:
      <code><a href="spaceship.EnergyConsumingItem-class.html#get_demand">get_demand</a></code>,
      <code><a href="spaceship.EnergyConsumingItem-class.html#is_usable">is_usable</a></code>,
      <code><a href="spaceship.EnergyConsumingItem-class.html#recharge">recharge</a></code>,
      <code><a href="spaceship.EnergyConsumingItem-class.html#use">use</a></code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== INSTANCE VARIABLES ==================== -->
<a name="section-InstanceVariables"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Instance Variables</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-InstanceVariables"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code><a href="spaceship.EnergyWeapon-class.html">EnergyWeapon</a></code></b>:
      <code><a href="spaceship.EnergyWeapon-class.html#cost">cost</a></code>,
      <code><a href="spaceship.EnergyWeapon-class.html#current">current</a></code>,
      <code><a href="spaceship.EnergyWeapon-class.html#maximum">maximum</a></code>,
      <code><a href="spaceship.EnergyWeapon-class.html#recharge_rate">recharge_rate</a></code>
      </p>
    <p class="indent-wrapped-lines"><b>Inherited from <code><a href="spaceship.Weapon-class.html">Weapon</a></code></b>:
      <code><a href="spaceship.Weapon-class.html#cfg">cfg</a></code>,
      <code><a href="spaceship.Weapon-class.html#cooldown">cooldown</a></code>,
      <code><a href="spaceship.Weapon-class.html#last_shot_time">last_shot_time</a></code>,
      <code><a href="spaceship.Weapon-class.html#owner">owner</a></code>,
      <code><a href="spaceship.Weapon-class.html#remaining_cooldown">remaining_cooldown</a></code>
      </p>
    <p class="indent-wrapped-lines"><b>Inherited from <code><a href="base.AGObject-class.html">base.AGObject</a></code></b>:
      <code><a href="base.AGObject-class.html#clock">clock</a></code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== METHOD DETAILS ==================== -->
<a name="section-MethodDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Method Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-MethodDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="__init__"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">owner</span>)</span>
    <br /><em class="fname">(Constructor)</em>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="spaceship-pysrc.html#ProjectileEnergyWeapon.__init__">source&nbsp;code</a></span>&nbsp;
    </td>
  </table>
  
  
  <dl class="fields">
    <dt>Overrides:
      <a href="spaceship.EnergyWeapon-class.html#__init__">EnergyWeapon.__init__</a>
    </dt>
  </dl>
</td></tr></table>
</div>
<a name="_shoot"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">_shoot</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">pos</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="spaceship-pysrc.html#ProjectileEnergyWeapon._shoot">source&nbsp;code</a></span>&nbsp;
    </td>
  </table>
  
  Create and return single projectile instance. Used internally by 
  method <code>shoot</code>.
  <dl class="fields">
    <dt>Overrides:
      <a href="spaceship.Weapon-class.html#_shoot">Weapon._shoot</a>
    </dt>
  </dl>
</td></tr></table>
</div>
<a name="shoot"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">shoot</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">pos</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="spaceship-pysrc.html#ProjectileEnergyWeapon.shoot">source&nbsp;code</a></span>&nbsp;
    </td>
  </table>
  
  Perform shot if the weapon has cooled and there is ammo left. Create 
  and return projectile instance.
  <dl class="fields">
    <dt>Overrides:
      <a href="spaceship.EnergyWeapon-class.html#shoot">EnergyWeapon.shoot</a>
    </dt>
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0beta1 on Thu Jul 31 17:03:02 2008
    </td>
    <td align="right" class="footer">
      <a href="http://epydoc.sourceforge.net">http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie()
  // -->
</script>
  
</body>
</html>
